<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Instagram Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset="utf-8">
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>

    <a name="//apple_ref/swift/Class/Instagram" class="dashAnchor"></a>

    <a title="Instagram Class Reference"></a>

    <header class="header">
      <p class="header-col header-col--primary">
        <a class="header-link" href="../index.html">
          SwiftInstagram Docs
        </a>
         (100% documented)
      </p>
    
      <p class="header-col--secondary">
        <form role="search" action="../search.json">
          <input type="text" placeholder="Search documentation" data-typeahead>
        </form>
      </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="https://github.com/AnderGoig/SwiftInstagram">
            <img class="header-icon" src="../img/gh.png"/>
            View on GitHub
          </a>
        </p>
    
    </header>

    <p class="breadcrumbs">
      <a class="breadcrumb" href="../index.html">SwiftInstagram Reference</a>
      <img class="carat" src="../img/carat.png" />
      Instagram Class Reference
    </p>

    <div class="content-wrapper">
      <nav class="navigation">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../API.html">API</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/Instagram.html">Instagram</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Authentication.html">Authentication</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/InstagramScope.html">InstagramScope</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Models.html">Models</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramUser.html">InstagramUser</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramUser/Counts.html">– Counts</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramRelationship.html">InstagramRelationship</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia.html">InstagramMedia</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia/Count.html">– Count</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia/Resolution.html">– Resolution</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia/Images.html">– Images</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia/Videos.html">– Videos</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia/UserInPhoto.html">– UserInPhoto</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramMedia/CarouselMedia.html">– CarouselMedia</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramComment.html">InstagramComment</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramTag.html">InstagramTag</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/InstagramLocation.html">InstagramLocation</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Errors.html">Errors</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/InstagramError.html">InstagramError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Other Structs.html">Other Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Other Structs.html#/s:14SwiftInstagram0B13EmptyResponseV">InstagramEmptyResponse</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">

        <section class="section">
          <div class="section-content">
            <h1>Instagram</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Instagram</span></code></pre>

                </div>
              </div>
            <p>A set of helper functions to make the Instagram API easier to use.</p>

          </div>
        </section>

        <section class="section">
          <div class="section-content">
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Types"></a>
                <a name="//apple_ref/swift/Section/Types" class="dashAnchor"></a>
                <a href="#/Types">
                  <h3 class="section-name">Types</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C19EmptySuccessHandlera"></a>
                    <a name="//apple_ref/swift/Alias/EmptySuccessHandler" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C19EmptySuccessHandlera">EmptySuccessHandler</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Empty success handler.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">EmptySuccessHandler</span> <span class="o">=</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C14SuccessHandlera"></a>
                    <a name="//apple_ref/swift/Alias/SuccessHandler" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Success handler.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">SuccessHandler</span><span class="o">&lt;</span><span class="kt">T</span><span class="o">&gt;</span> <span class="o">=</span> <span class="p">(</span><span class="n">_</span> <span class="nv">data</span><span class="p">:</span> <span class="kt">T</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C14FailureHandlera"></a>
                    <a name="//apple_ref/swift/Alias/FailureHandler" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Failure handler.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">typealias</span> <span class="kt">FailureHandler</span> <span class="o">=</span> <span class="p">(</span><span class="n">_</span> <span class="nv">error</span><span class="p">:</span> <span class="kt">Error</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Initializers"></a>
                <a name="//apple_ref/swift/Section/Initializers" class="dashAnchor"></a>
                <a href="#/Initializers">
                  <h3 class="section-name">Initializers</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C6sharedACvpZ"></a>
                    <a name="//apple_ref/swift/Variable/shared" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C6sharedACvpZ">shared</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns a shared instance of Instagram.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">static</span> <span class="k">let</span> <span class="nv">shared</span><span class="p">:</span> <span class="kt">Instagram</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Authentication"></a>
                <a name="//apple_ref/swift/Section/Authentication" class="dashAnchor"></a>
                <a href="#/Authentication">
                  <h3 class="section-name">Authentication</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C5login4from10withScopes7success7failureySo22UINavigationControllerC_SayAA0B5ScopeOGyycSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/login(from:withScopes:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C5login4from10withScopes7success7failureySo22UINavigationControllerC_SayAA0B5ScopeOGyycSgys5Error_pcSgtF">login(from:withScopes:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Starts an authentication process.</p>

<p>Shows a custom <code>UIViewController</code> with Intagram&rsquo;s login page.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">login</span><span class="p">(</span><span class="n">from</span> <span class="nv">controller</span><span class="p">:</span> <span class="kt">UINavigationController</span><span class="p">,</span>
                  <span class="n">withScopes</span> <span class="nv">scopes</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Enums/InstagramScope.html">InstagramScope</a></span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span><span class="o">.</span><span class="n">basic</span><span class="p">],</span>
                  <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera">EmptySuccessHandler</a></span><span class="p">?,</span>
                  <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>controller</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code>UINavigationController</code> from which the <code>InstagramLoginViewController</code> will be showed.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>scopes</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The scope of the access you are requesting from the user. Basic access by default.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct login.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect login.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C6logoutSbyF"></a>
                    <a name="//apple_ref/swift/Method/logout()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C6logoutSbyF">logout()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Ends the current session.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">logout</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>True if the user was successfully logged out, false otherwise.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C15isAuthenticatedSbvp"></a>
                    <a name="//apple_ref/swift/Property/isAuthenticated" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C15isAuthenticatedSbvp">isAuthenticated</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns whether a user is currently authenticated or not.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">isAuthenticated</span><span class="p">:</span> <span class="kt">Bool</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Access%20Token"></a>
                <a name="//apple_ref/swift/Section/Access Token" class="dashAnchor"></a>
                <a href="#/Access%20Token">
                  <h3 class="section-name">Access Token</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C16storeAccessTokenySbSSF"></a>
                    <a name="//apple_ref/swift/Method/storeAccessToken(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C16storeAccessTokenySbSSF">storeAccessToken(_:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Store your own authenticated access token so you don&rsquo;t have to use the included login authentication.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">storeAccessToken</span><span class="p">(</span><span class="n">_</span> <span class="nv">accessToken</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C19retrieveAccessTokenSSSgyF"></a>
                    <a name="//apple_ref/swift/Method/retrieveAccessToken()" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C19retrieveAccessTokenSSSgyF">retrieveAccessToken()</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the current access token.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">retrieveAccessToken</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">String</span><span class="p">?</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Comment%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/Comment Endpoints" class="dashAnchor"></a>
                <a href="#/Comment%20Endpoints">
                  <h3 class="section-name">Comment Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C8comments9fromMedia7success7failureySS_ySayAA0B7CommentVGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/comments(fromMedia:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C8comments9fromMedia7success7failureySS_ySayAA0B7CommentVGcSgys5Error_pcSgtF">comments(fromMedia:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get a list of recent comments on a media object.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope for media that does not belong to your own user.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">comments</span><span class="p">(</span><span class="n">fromMedia</span> <span class="nv">mediaId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramComment.html">InstagramComment</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C13createComment7onMedia4text7success7failureySS_SSyAA0bD0VcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/createComment(onMedia:text:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C13createComment7onMedia4text7success7failureySS_SSyAA0bD0VcSgys5Error_pcSgtF">createComment(onMedia:text:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Create a comment on a media object.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>comments</em> scope. Also, <em>public_content</em> scope is required for media that does not belong to your own user.</p>

</div>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    <p>note:</p>

<ul>
<li>The total length of the comment cannot exceed 300 characters.</li>
<li>The comment cannot contain more than 4 hashtags.</li>
<li>The comment cannot contain more than 1 URL.</li>
<li>The comment cannot consist of all capital letters.</li>
</ul>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">createComment</span><span class="p">(</span><span class="n">onMedia</span> <span class="nv">mediaId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramComment.html">InstagramComment</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>mediaId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the media object to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>text</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Text to post as a comment on the media object as specified in <code>mediaId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect creation.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C13deleteComment_7onMedia7success7failureySS_SSyycSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/deleteComment(_:onMedia:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C13deleteComment_7onMedia7success7failureySS_SSyycSgys5Error_pcSgtF">deleteComment(_:onMedia:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Remove a comment either on the authenticated user&rsquo;s media object or authored by the authenticated user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>comments</em> scope. Also, <em>public_content</em> scope is required for media that does not belong to your own user.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">deleteComment</span><span class="p">(</span><span class="n">_</span> <span class="nv">commentId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="n">onMedia</span> <span class="nv">mediaId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera">EmptySuccessHandler</a></span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>commentId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the comment to delete.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>mediaId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the media object to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect deletion.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Like%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/Like Endpoints" class="dashAnchor"></a>
                <a href="#/Like%20Endpoints">
                  <h3 class="section-name">Like Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C5likes7inMedia7success7failureySS_ySayAA0B4UserVGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/likes(inMedia:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C5likes7inMedia7success7failureySS_ySayAA0B4UserVGcSgys5Error_pcSgtF">likes(inMedia:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get a list of users who have liked this media.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope for media that does not belong to your own user.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">likes</span><span class="p">(</span><span class="n">inMedia</span> <span class="nv">mediaId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramUser.html">InstagramUser</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>mediaId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the media object to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C4like5media7success7failureySS_yycSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/like(media:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C4like5media7success7failureySS_yycSgys5Error_pcSgtF">like(media:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Set a like on this media by the currently authenticated user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>likes</em> scope. Also, <em>public_content</em> scope is required for media that does not belong to your own user.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">like</span><span class="p">(</span><span class="n">media</span> <span class="nv">mediaId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera">EmptySuccessHandler</a></span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>mediaId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the media object to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect like.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C6unlike5media7success7failureySS_yycSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/unlike(media:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C6unlike5media7success7failureySS_yycSgys5Error_pcSgtF">unlike(media:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Remove a like on this media by the currently authenticated user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>likes</em> scope. Also, <em>public_content</em> scope is required for media that does not belong to your own user.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">unlike</span><span class="p">(</span><span class="n">media</span> <span class="nv">mediaId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C19EmptySuccessHandlera">EmptySuccessHandler</a></span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect deletion.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Location%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/Location Endpoints" class="dashAnchor"></a>
                <a href="#/Location%20Endpoints">
                  <h3 class="section-name">Location Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C8location_7success7failureySS_yAA0B8LocationVySSGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/location(_:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C8location_7success7failureySS_yAA0B8LocationVySSGcSgys5Error_pcSgtF">location(_:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get information about a location.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">location</span><span class="p">(</span><span class="n">_</span> <span class="nv">locationId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramLocation.html">InstagramLocation</a></span><span class="o">&lt;</span><span class="kt">String</span><span class="o">&gt;&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>locationId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the location to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C11recentMedia11forLocation5maxId03minH07success7failureySS_SSSgAJySayAA0bD0VGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/recentMedia(forLocation:maxId:minId:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C11recentMedia11forLocation5maxId03minH07success7failureySS_SSSgAJySayAA0bD0VGcSgys5Error_pcSgtF">recentMedia(forLocation:maxId:minId:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get a list of recent media objects from a given location.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recentMedia</span><span class="p">(</span><span class="n">forLocation</span> <span class="nv">locationId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                        <span class="nv">maxId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">minId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                        <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>locationId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the location to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>maxId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media after this <code>maxId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>minId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media before this <code>mindId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C14searchLocation8latitude9longitude8distance16facebookPlacesId7success7failureySdSg_AKSiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/searchLocation(latitude:longitude:distance:facebookPlacesId:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C14searchLocation8latitude9longitude8distance16facebookPlacesId7success7failureySdSg_AKSiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF">searchLocation(latitude:longitude:distance:facebookPlacesId:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Search for a location by geographic coordinate.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">searchLocation</span><span class="p">(</span><span class="nv">latitude</span><span class="p">:</span> <span class="kt">Double</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">longitude</span><span class="p">:</span> <span class="kt">Double</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">distance</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">facebookPlacesId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramLocation.html">InstagramLocation</a></span><span class="o">&lt;</span><span class="kt">String</span><span class="o">&gt;</span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                           <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>latitude</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Latitude of the center search coordinate. If used, <code>longitude</code> is required.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>longitude</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Longitude of the center search coordinate. If used, <code>latitude</code> is required.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>distance</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Default is 500m, max distance is 750.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>facebookPlacesId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Returns a location mapped off of a Facebook places id. If used, <code>coordinates</code> is not required.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C14searchLocation11coordinates8distance16facebookPlacesId7success7failureySo22CLLocationCoordinate2DVSg_SiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/searchLocation(coordinates:distance:facebookPlacesId:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C14searchLocation11coordinates8distance16facebookPlacesId7success7failureySo22CLLocationCoordinate2DVSg_SiSgSSSgySayAA0bD0VySSGGcSgys5Error_pcSgtF">searchLocation(coordinates:distance:facebookPlacesId:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Search for a location by geographic coordinate.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">searchLocation</span><span class="p">(</span><span class="nv">coordinates</span><span class="p">:</span> <span class="kt">CLLocationCoordinate2D</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">distance</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">facebookPlacesId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                           <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramLocation.html">InstagramLocation</a></span><span class="o">&lt;</span><span class="kt">String</span><span class="o">&gt;</span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                           <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>coordinates</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Latitude and longitude of the center search coordinates.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>distance</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Default is 500m, max distance is 750.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>facebookPlacesId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Returns a location mapped off of a Facebook places id. If used, <code>coordinates</code> is not required.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Media%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/Media Endpoints" class="dashAnchor"></a>
                <a href="#/Media%20Endpoints">
                  <h3 class="section-name">Media Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C5media6withId7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/media(withId:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C5media6withId7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF">media(withId:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get information about a media object.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">media</span><span class="p">(</span><span class="n">withId</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the media object to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C5media13withShortcode7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/media(withShortcode:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C5media13withShortcode7success7failureySS_yAA0B5MediaVcSgys5Error_pcSgtF">media(withShortcode:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get information about a media object.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>
<div class="aside aside-note">
    <p class="aside-title">Note</p>
    <p>A media object&rsquo;s shortcode can be found in its shortlink URL.
An example shortlink is <a href="http://instagram.com/p/tsxp1hhQTG/">http://instagram.com/p/tsxp1hhQTG/</a>. Its corresponding shortcode is tsxp1hhQTG.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">media</span><span class="p">(</span><span class="n">withShortcode</span> <span class="nv">shortcode</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>shortcode</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The shortcode of the media object to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C11searchMedia8latitude9longitude8distance7success7failureySdSg_AJSiSgySayAA0bD0VGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/searchMedia(latitude:longitude:distance:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C11searchMedia8latitude9longitude8distance7success7failureySdSg_AJSiSgySayAA0bD0VGcSgys5Error_pcSgtF">searchMedia(latitude:longitude:distance:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Search for recent media in a given area.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">searchMedia</span><span class="p">(</span><span class="nv">latitude</span><span class="p">:</span> <span class="kt">Double</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">longitude</span><span class="p">:</span> <span class="kt">Double</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">distance</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                        <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>latitude</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Latitude of the center search coordinate. If used, <code>longitude</code> is required.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>longitude</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Longitude of the center search coordinate. If used, <code>latitude</code> is required.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>distance</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Default is 1km (1000m), max distance is 5km.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C11searchMedia11coordinates8distance7success7failureySo22CLLocationCoordinate2DVSg_SiSgySayAA0bD0VGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/searchMedia(coordinates:distance:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C11searchMedia11coordinates8distance7success7failureySo22CLLocationCoordinate2DVSg_SiSgySayAA0bD0VGcSgys5Error_pcSgtF">searchMedia(coordinates:distance:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Search for recent media in a given area.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">searchMedia</span><span class="p">(</span><span class="nv">coordinates</span><span class="p">:</span> <span class="kt">CLLocationCoordinate2D</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">distance</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                        <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>coordinates</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Latitude and longitude of the center search coordinates.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>distance</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Default is 1km (1000m), max distance is 5km.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Relationship%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/Relationship Endpoints" class="dashAnchor"></a>
                <a href="#/Relationship%20Endpoints">
                  <h3 class="section-name">Relationship Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C11userFollows7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/userFollows(success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C11userFollows7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF">userFollows(success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get the list of users this user follows.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>follower_list</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">userFollows</span><span class="p">(</span><span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramUser.html">InstagramUser</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C13userFollowers7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/userFollowers(success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C13userFollowers7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF">userFollowers(success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get the list of users this user is followed by.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>follower_list</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">userFollowers</span><span class="p">(</span><span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramUser.html">InstagramUser</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C15userRequestedBy7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/userRequestedBy(success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C15userRequestedBy7success7failureyySayAA0B4UserVGcSg_ys5Error_pcSgtF">userRequestedBy(success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>List the users who have requested this user&rsquo;s permission to follow.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>follower_list</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">userRequestedBy</span><span class="p">(</span><span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramUser.html">InstagramUser</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C16userRelationship8withUser7success7failureySS_yAA0bD0VcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/userRelationship(withUser:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C16userRelationship8withUser7success7failureySS_yAA0bD0VcSgys5Error_pcSgtF">userRelationship(withUser:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get information about a relationship to another user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>follower_list</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">userRelationship</span><span class="p">(</span><span class="n">withUser</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramRelationship.html">InstagramRelationship</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C6follow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/follow(user:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C6follow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF">follow(user:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Follows the target user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>relationships</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">follow</span><span class="p">(</span><span class="n">user</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramRelationship.html">InstagramRelationship</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct follow.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect follow.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C8unfollow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/unfollow(user:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C8unfollow4user7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF">unfollow(user:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Unfollows the target user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>relationships</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">unfollow</span><span class="p">(</span><span class="n">user</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramRelationship.html">InstagramRelationship</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct unfollow.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect unfollow.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C14approveRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/approveRequest(fromUser:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C14approveRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF">approveRequest(fromUser:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Approve the target user&rsquo;s request.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>relationships</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">approveRequest</span><span class="p">(</span><span class="n">fromUser</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramRelationship.html">InstagramRelationship</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct approve.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect approve.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C13ignoreRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/ignoreRequest(fromUser:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C13ignoreRequest8fromUser7success7failureySS_yAA0B12RelationshipVcSgys5Error_pcSgtF">ignoreRequest(fromUser:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Ignore the target user&rsquo;s request.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>relationships</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">ignoreRequest</span><span class="p">(</span><span class="n">fromUser</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramRelationship.html">InstagramRelationship</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct ignore.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect ignore.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Tag%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/Tag Endpoints" class="dashAnchor"></a>
                <a href="#/Tag%20Endpoints">
                  <h3 class="section-name">Tag Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C3tag_7success7failureySS_yAA0B3TagVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/tag(_:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C3tag_7success7failureySS_yAA0B3TagVcSgys5Error_pcSgtF">tag(_:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get information about a tag object.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">tag</span><span class="p">(</span><span class="n">_</span> <span class="nv">tagName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramTag.html">InstagramTag</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tagName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the tag to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C11recentMedia7withTag03maxF2Id03minfH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/recentMedia(withTag:maxTagId:minTagId:count:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C11recentMedia7withTag03maxF2Id03minfH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF">recentMedia(withTag:maxTagId:minTagId:count:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get a list of recently tagged media.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recentMedia</span><span class="p">(</span><span class="n">withTag</span> <span class="nv">tagName</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                        <span class="nv">maxTagId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">minTagId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">count</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                        <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>tagName</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The name of the tag to reference.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>maxTagId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media after this <code>maxTagId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>minTagId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media before this <code>minTagId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>count</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Count of tagged media to return.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C6search3tag7success7failureySS_ySayAA0B3TagVGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/search(tag:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C6search3tag7success7failureySS_ySayAA0B3TagVGcSgys5Error_pcSgtF">search(tag:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Search for tags by name.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">search</span><span class="p">(</span><span class="n">tag</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramTag.html">InstagramTag</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A valid tag name without a leading #. (eg. snowy, nofilter)</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/User%20Endpoints"></a>
                <a name="//apple_ref/swift/Section/User Endpoints" class="dashAnchor"></a>
                <a href="#/User%20Endpoints">
                  <h3 class="section-name">User Endpoints</h3>
                </a>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C4user_7success7failureySS_yAA0B4UserVcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/user(_:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C4user_7success7failureySS_yAA0B4UserVcSgys5Error_pcSgtF">user(_:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get information about a user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope when getting information about a user other than yours.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">user</span><span class="p">(</span><span class="n">_</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="kt"><a href="../Structs/InstagramUser.html">InstagramUser</a></span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user whose information to retrieve, or <q>self</q> to reference the currently authenticated user.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C11recentMedia8fromUser5maxId03minH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/recentMedia(fromUser:maxId:minId:count:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C11recentMedia8fromUser5maxId03minH05count7success7failureySS_SSSgAKSiSgySayAA0bD0VGcSgys5Error_pcSgtF">recentMedia(fromUser:maxId:minId:count:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get the most recent media published by a user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope when getting recent media published by a user other than yours.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">recentMedia</span><span class="p">(</span><span class="n">fromUser</span> <span class="nv">userId</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
                        <span class="nv">maxId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">minId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">count</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span>
                        <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span>
                        <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>userId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The ID of the user whose recent media to retrieve, or <q>self</q> to reference the currently authenticated user.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>maxId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media earlier than this <code>maxId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>minId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media later than this <code>minId</code>.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>count</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Count of media to return.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C14userLikedMedia9maxLikeId5count7success7failureySSSg_SiSgySayAA0bE0VGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/userLikedMedia(maxLikeId:count:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C14userLikedMedia9maxLikeId5count7success7failureySSSg_SiSgySayAA0bE0VGcSgys5Error_pcSgtF">userLikedMedia(maxLikeId:count:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get the list of recent media liked by the currently authenticated user.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">userLikedMedia</span><span class="p">(</span><span class="nv">maxLikeId</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">count</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramMedia.html">InstagramMedia</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>maxLikeId</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Return media liked before this id.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>count</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Count of media to return.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:14SwiftInstagram0B0C6search4user5count7success7failureySS_SiSgySayAA0B4UserVGcSgys5Error_pcSgtF"></a>
                    <a name="//apple_ref/swift/Method/search(user:count:success:failure:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:14SwiftInstagram0B0C6search4user5count7success7failureySS_SiSgySayAA0B4UserVGcSgys5Error_pcSgtF">search(user:count:success:failure:)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Get a list of users matching the query.</p>
<div class="aside aside-important">
    <p class="aside-title">Important</p>
    <p>It requires <em>public_content</em> scope.</p>

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">search</span><span class="p">(</span><span class="n">user</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">count</span><span class="p">:</span> <span class="kt">Int</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">success</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14SuccessHandlera">SuccessHandler</a></span><span class="o">&lt;</span><span class="p">[</span><span class="kt"><a href="../Structs/InstagramUser.html">InstagramUser</a></span><span class="p">]</span><span class="o">&gt;</span><span class="p">?,</span> <span class="nv">failure</span><span class="p">:</span> <span class="kt"><a href="../Classes/Instagram.html#/s:14SwiftInstagram0B0C14FailureHandlera">FailureHandler</a></span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>query</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A query string.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>count</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Number of users to return.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>success</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after a correct retrieval.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>failure</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The callback called after an incorrect retrieval.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </section>

      </article>
    </div>
    <section class="footer">
      <p>&copy; 2018 <a class="link" href="https://github.com/AnderGoig" target="_blank" rel="external">Ander Goig</a>. All rights reserved. (Last updated: 2018-10-14)</p>
      <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.9.3</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
    </section>
  </body>
</div>
</html>
